package com.xebest.web.form;

import com.xebest.web.model.XeVenAfterSaleDetailEntity;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author chenjing
 */
public class XeVenAfterSaleSubmitForm {

    /**
     * 售后单号
     */
    private String afterSaleCode;

    /**
     * 供应商编码
     */
    private String userCode;

    /**
     * 订单号
     */
    @NotBlank(message = "订单号不能为空")
    @Size(min = 2, max = 20, message = "订单号只能在2-20之间")
    private String orderId;


    /**
     * 售后类型：1仅退款 2退款退货
     */
    @NotNull(message = "售后类型不能为空")
    private Integer afterSaleType;


    /**
     * 售后原因
     */
    @NotNull(message = "售后原因不能为空")
    private Integer afterSaleReason;

    /**
     * 售后说明
     */
    private String afterSaleRemark;


    /**
     * 仓库id
     */
    private String storeId;

    /**
     * 仓库名称
     */
    private String storeName;

    /**
     * 退货相关参数
     */
    private List<XeVenAfterSaleDetailEntity> list;

    /*图片附件地址集合*/
    private List<String> imgs;

    public List<String> getImgs() {
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }

    public String getAfterSaleCode() {
        return afterSaleCode;
    }

    public void setAfterSaleCode(String afterSaleCode) {
        this.afterSaleCode = afterSaleCode;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getAfterSaleType() {
        return afterSaleType;
    }

    public void setAfterSaleType(Integer afterSaleType) {
        this.afterSaleType = afterSaleType;
    }

    public Integer getAfterSaleReason() {
        return afterSaleReason;
    }

    public void setAfterSaleReason(Integer afterSaleReason) {
        this.afterSaleReason = afterSaleReason;
    }

    public String getAfterSaleRemark() {
        return afterSaleRemark;
    }

    public void setAfterSaleRemark(String afterSaleRemark) {
        this.afterSaleRemark = afterSaleRemark;
    }

    public List<XeVenAfterSaleDetailEntity> getList() {
        return list;
    }

    public void setList(List<XeVenAfterSaleDetailEntity> list) {
        this.list = list;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }
}
